package com.diaohaiwen.basic.account.obj.model.table;

import com.mybatisflex.core.query.QueryColumn;
import com.mybatisflex.core.table.TableDef;

/**
 * 系统账户菜单权限 表定义层。
 *
 * @author 刁海文
 * @since 2023-07-20 19:06:16
 */
public class AccountMenuPermissionDef extends TableDef {

    /**
     * 系统账户菜单权限
     */
    public static final AccountMenuPermissionDef accountMenuPermission = new AccountMenuPermissionDef();

    /**
     * 主键ID
     */
    public final QueryColumn id = new QueryColumn(this, "id");

    /**
     * 菜单主键ID
     */
    public final QueryColumn menuId = new QueryColumn(this, "menu_id");

    /**
     * 备注
     */
    public final QueryColumn remark = new QueryColumn(this, "remark");

    /**
     * 创建时间
     */
    public final QueryColumn created = new QueryColumn(this, "created");

    /**
     * 更新时间
     */
    public final QueryColumn updated = new QueryColumn(this, "updated");

    /**
     * 创建人
     */
    public final QueryColumn createdBy = new QueryColumn(this, "created_by");

    /**
     * 是否启用
     */
    public final QueryColumn hasEnable = new QueryColumn(this, "has_enable");

    /**
     * 更新人
     */
    public final QueryColumn updatedBy = new QueryColumn(this, "updated_by");

    /**
     * 权限CODE
     */
    public final QueryColumn permissionCode = new QueryColumn(this, "permission_code");

    /**
     * 权限名称
     */
    public final QueryColumn permissionName = new QueryColumn(this, "permission_name");

    /**
     * 所有字段。
     */
    public final QueryColumn allColumns = new QueryColumn(this, "*");

    /**
     * 默认字段，不包含逻辑删除或者 large 等字段。
     */
    public final QueryColumn[] defaultColumns = new QueryColumn[]{id, createdBy, created, updatedBy, updated, menuId, permissionName, permissionCode, remark, hasEnable};

    public AccountMenuPermissionDef() {
        super("", "account_menu_permission");
    }

}
